package com.liang.springcloud;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

//在微服务启动的时候，就能去加载我们自定义Ribbon类
//@RibbonClient(name="SPRINGCLOUD-PROVIDER-DEPT",configuration = liangRule.class)
@EnableEurekaClient
@SpringBootApplication
@EnableFeignClients(basePackages= {"com.liang.springcloud"})
//@ComponentScan("com.liang.springcloud")
//@ComponentScan("com.liang.springcloud")
public class FeignDeptConsumer_80 {
    public static void main(String[] args) {
        SpringApplication.run(FeignDeptConsumer_80.class,args);
    }
}
